home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_netpbm.idb / usr / freeware / catman / u_man / cat1 / pgmkernel.Z / pgmkernel
Encoding:
Text File  |  1998-10-28  |  2.1 KB  |  68 lines

  1. /xlv1/freeware/1998.Oct/netpbm/1mar1994/netpbm.diffbuild/pgm
  2.  
  3.  
  4.  
  5.      ppppggggmmmmkkkkeeeerrrrnnnneeeellll((((1111))))    UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((11110000 DDDDeeeecccceeeemmmmbbbbeeeerrrr    1111999999992222))))      ppppggggmmmmkkkkeeeerrrrnnnneeeellll((((1111))))
  6.  
  7.  
  8.  
  9.      NNNNAAAAMMMMEEEE
  10.       pgmkernel - generate a convolution kernel
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       ppppggggmmmmkkkkeeeerrrrnnnneeeellll [ ----wwwweeeeiiiigggghhhhtttt _w    ] _w_i_d_t_h    [ _h_e_i_g_h_t ]
  14.  
  15.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.       Generates a portable graymap array of    size _w_i_d_t_h x _h_e_i_g_h_t
  17.       (or _w_i_d_t_h x _w_i_d_t_h if _h_e_i_g_h_t is not specified)    to be used as
  18.       a convolution    file by    ppppnnnnmmmmccccoooonnnnvvvvoooollll.  The    data in    the
  19.       convolution array K are computed according to    the formula:
  20.  
  21.       K(i,j) = 1 / ( 1 + w * sqrt((i-width/2)^2 + (j-height/2)^2))
  22.  
  23.       where    _w is a coefficient specified via the -_w_e_i_g_h_t flag, and
  24.       _w_i_d_t_h    and _h_e_i_g_h_t are the X and Y filter sizes.
  25.  
  26.       The output PGM file is always    written    out in ASCII format.
  27.  
  28.      OOOOPPPPTTTTIIIIOOOONNNNSSSS
  29.       The optional -_w_e_i_g_h_t flag should be a    real number greater
  30.       than -1.  The    default    value is 6.0.
  31.  
  32.      BBBBUUUUGGGGSSSS
  33.       The computation time is proportional to _w_i_d_t_h    * _h_e_i_g_h_t.
  34.       This increases rapidly with the increase of the kernel size.
  35.       A better approach could be using a FFT in these cases.
  36.  
  37.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  38.       pnmconvol(1),    pnmsmooth(1)
  39.  
  40.      AAAAUUUUTTTTHHHHOOOORRRR
  41.       Alberto Accomazzi (alberto@cfa.harvard.edu).
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.      Page 1                         (printed 8/31/98)
  65.  
  66.  
  67.  
  68.